<?php
/*
Template Name: Background with image
*/
?>

<?php get_header(); ?>

<?php the_post(); 

$cust_back_img_id = get_post_meta($post->ID, 'arc_custom_background_image', true);

$cust_back_img = wp_get_attachment_url($cust_back_img_id);

?>

<!-- start Content Home -->				
<div class="content">

<div class="titlepage">
	<p><span><?php the_title(); ?></span></p>
</div>
<div class="slideimg">
	<?php if(!empty($cust_back_img)){ ?>
	<img src="<?php echo $cust_back_img; ?>" width="882px" height="564px">
	<?php } ?>
	
	<!-- Page Content -->
	<div class="main_content">
		<?php the_content(); ?>
	</div>
</div>

<div class="hidecorner"></div>
		
		</div>	
	</div>	
</div>

<?php get_footer(); ?>